﻿@{
    ViewBag.Title = "学生互动";
    string temp = @"#ds-thread #ds-reset #ds-hot-posts { border: 1px solid #ccc; margin: 8px 0; overflow: hidden; padding: 0; }
#ds-thread #ds-reset ul.ds-comments-tabs li.ds-tab a.ds-current { border: 0px; text-shadow: none; }
#ds-thread #ds-reset .ds-highlight { font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: bold; }
#ds-thread #ds-reset a.ds-highlight:hover { color: #696a52 !important; }

#ds-thread #ds-reset li.ds-post, #ds-thread #ds-reset #ds-hot-posts { overflow: visible; }

#ds-thread #ds-reset .ds-comment-body { padding: 0 15px 12px 60px; }
#ds-thread #ds-reset li.ds-post { border-top: 1px solid rgba(0, 0, 0, 0.13); clear: both; list-style: outside none none; margin: 0; overflow: hidden; padding: 0; width: 100%; }
#ds-reset #ds-bubble .ds-user-name { padding-left: 13px; }
#ds-thread #ds-reset .ds-post-self { border-top: 1px solid rgba(255, 255, 255, 0.7); padding: 10px; position: relative; }
#ds-reset .ds-avatar { background-color: #fff; border-radius: 3px; box-shadow: 0 1px 1px rgba(255, 255, 255, 0.75); float: left; position: relative; }
#ds-reset .ds-avatar img { border-radius: 3px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22); display: block; height: 50px; max-width: none; width: 50px; }
#ds-reset .ds-comment-body #ds-ctx { border-left: 1px solid #b9baa6; background-color: #e8e8dc !important; }
#ds-reset #ds-ctx { margin-right: -15px; }

#ds-thread #ds-reset .ds-powered-by { display: none; }
/*隐藏多说底部版权*/
#ds-thread { padding: 10px 30px; }

#ds-wrapper #ds-reset .ds-dialog-footer { display: none; }
#ds-wrapper #ds-reset .ds-dialog-close { border: 1px solid #d1d1d1; top: 13px; }
#ds-thread #ds-reset .ds-meta { display: none; }";
}
@section Header{
    <style type="text/css">
        @temp
    </style>
}
<div class="sq_main_body">
    <!-- 多说评论框 start -->
    <div class="ds-thread" data-thread-key="0" data-title="学生互动" data-url="@Request.Url"></div>
    <!-- 多说评论框 end -->
    <!-- 多说公共JS代码 start (一个网页只需插入一次) -->
    <script type="text/javascript">
        var duoshuoQuery = { short_name: "efenghuo" };
        (function () {
            var ds = document.createElement('script');
            ds.type = 'text/javascript'; ds.async = true;
            ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
            ds.charset = 'UTF-8';
            (document.getElementsByTagName('head')[0]
             || document.getElementsByTagName('body')[0]).appendChild(ds);
        })();
    </script>
</div>
<!-- 多说公共JS代码 end -->
@*@model IList<WXY.Course.Model.CommentInfo>
    @{
    }
    <script src="~/Scripts/comment.js" type="text/javascript"></script>
    <div class="comments">
        <a name="comments"></a>
        <div class="comment_title">
            查看评论
        </div>
        <div class="comment_list">
            <ul class="comment_ul">
                @if (Model == null || Model.Count == 0)
                {
                    <div class="no_comment">
                        暂无评论！<a href="#comments">抢坐沙发？</a>
                    </div>
                }
                else
                {
                    int i = 1;
                    foreach (var item in Model)
                    {
                        <li>
                            <div class="visitorInfo">
                                <span class="link_id">@(i++)楼</span>
                                <span class="link_nick">@item.Nick</span>
                                <span class="link_ip">@string.Join(".", item.IP.Split('.').Select(m => m.Remove(m.Length - 1, 1) + "*"))</span>
                                <span class="link_postdate">@item.CreateTime</span>
                            </div>
                            <div class="postText">@item.Content</div>
                        </li>
                    }
                }
            </ul>
        </div>
        <div class="comment_title">
            发表评论
        </div>
        <p class="subtit">
            如果您希望得到回复，请留下您的联系方式(不会公开)：
        </p>
        <div class="subtit">
            昵称：<input type="text" id="nick" name="nick" style="width: 110px;" />
            QQ：<input type="text" id="qq" name="qq" style="width: 110px;" />
            邮箱：<input type="text" id="email" name="email" style="width: 150px;" />
        </div>
        <p class="subtit">
            评论内容(严禁添加链接，自动过滤)：
        </p>
        <div class="subtit">
            <textarea id="commentArea" name="commentText" rows="12"></textarea>
        </div>
        <div class="btn_area">
            <input type="button" id="btnPublish" onclick="Comment.postComment()" class="input_btn_1"
                   value="发表评论" title="发表评论" />
            <span id="msg" style="color:red"></span>
        </div>
    </div>*@